/**
 * 
 */
package org.softTank.BC.data;

import org.softTank.BC.entity.services.Role;
import org.springside.modules.test.DataUtils;

/**
 * @author Yuzone
 *
 */
public class RoleData {

	public static Role getRandomRoleWithoutFK() {
		Role r = new Role();
		r.setName(DataUtils.randomName("role"));
		r.setDescription("desc");
		r.setLocation("location");
		r.setNamespace("ns");

		return r;
	}

	public static Role getRandomRoleWithFK() {
		Role r = getRandomRoleWithoutFK();
		r.setPartnerLinkType(PartnerLinkTypeData.getTestPLT());
		r.setPortType(PortTypeData.getTestPortType());
		r.setId(1L);

		return r;
	}

	public static Role getTestRole() {
		Role r = getRandomRoleWithoutFK();
		r.setName("name");
		r.setId(1L);

		return r;
	}

	public static Role getRoleWithInferiors() {
		Role r = getRandomRoleWithoutFK();
		r.setId(1L);
		r.setPortType(PortTypeData.getPortTypeWithInferiors());

		return r;
	}
}
